package com.guigu.health.dao;

import com.guigu.health.pojo.Order;
import com.guigu.health.pojo.OrderExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    /**
     * 根据日期查询预约人数
     *
     * @param date
     * @return
     */
    long countOrder(@Param("date") String date);

    /**
     * 每天的预约数
     * @param date
     * @return
     */
    Integer countOrder2(@Param("date") String date);
}